home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_319
/
cnewssrc
/
cnews.src.lzh
/
libfake
/
ldiv.c
< prev
next >
Wrap
C/C++ Source or Header
|
1980-01-01
|
235b
|
17 lines
/*
* ANSI's ldiv(num, denom) - yields (num/denom, num%denom)
*/
#include <stdlib.h>
ldiv_t
ldiv(num, denom)
register long num, denom;
{
register ldiv_t result;
result.quot = num/denom;
result.rem = num%denom;
return result;
}